<script setup lang="ts">

</script>

<template>
  <div class="wrapper">
    <div class="left">
      <div class="brand">
        <img class="logo" src="../src/assets/vite.svg" />
        <div class="title">ElementAdmin</div>
      </div>
      <div class="leftMenu">
        <el-scrollbar>
          <el-menu active-text-color="#ffd04b" background-color="#545c64" class="menu" mode="vertical"
            default-active="2" text-color="#fff">
            <el-sub-menu index="1">
              <template #title>
                <el-icon>
                  <location />
                </el-icon>
                <span>Navigator One</span>
              </template>
              <el-menu-item-group title="Group One">
                <el-menu-item index="1-1">item one</el-menu-item>
                <el-menu-item index="1-2">item two</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group title="Group Two">
                <el-menu-item index="1-3">item three</el-menu-item>
              </el-menu-item-group>
              <el-sub-menu index="1-4">
                <template #title>item four</template>
                <el-menu-item index="1-4-1">item one</el-menu-item>
              </el-sub-menu>
            </el-sub-menu>
            <el-menu-item index="2">
              <el-icon>
                <Menu />
              </el-icon>
              <span>Navigator Two</span>
            </el-menu-item>
            <el-menu-item index="3" disabled>
              <el-icon>
                <document />
              </el-icon>
              <span>Navigator Three</span>
            </el-menu-item>
            <el-menu-item index="4">
              <el-icon>
                <setting />
              </el-icon>
              <span>Navigator Four</span>
            </el-menu-item>
          </el-menu>
        </el-scrollbar>
      </div>
    </div>
    <div class="right">
      <div class="header">
        <div class="navigation"></div>
        <div class="action"></div>
      </div>
      <div class="tabsBox"></div>
      <div class="mainBox"></div>
    </div>
  </div>

</template>

<style scoped lang="scss">
.wrapper {
  margin: 0 auto;
  width: 100%;
  height: 100%;
  display: flex;
}

.left {
  width: 200px;
  display: flex;
  flex-direction: column;
  background-color: #001529;
  overflow: hidden;
}

.brand {

  width: 200px;
  height: 48px;
  line-height: 48px;
  display: flex;
  padding: 0 8;
  border-bottom: 1px solid #00040f;
  cursor: pointer;

  .logo {
    max-width: 32px;
    max-height: 32px;
    margin: 10px 10px 10px 8px;
  }

  .title {
    flex: 1;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
  }
}

.leftMenu {
  flex: 1;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;

  .menu {
    border: none;
  }
}

.header {
  width: 100%;
  height: 48px;
  line-height: 48px;
  display: flex;
  justify-content: space-between;

  .navigation {
    flex: 1;
  }

  .action {}
}

.right {
  flex: 1;
  display: flex;
  flex-direction: column;

  .tabsBox {
    height: 38px;
  }

  .mainBox {
    flex: 1;
  }
}
</style>
